import java.util.ArrayList;

import com.aotain.common.mongo.DataColumn;
import com.aotain.common.mongo.MongoConnection;


public class App {

	public static void main( String[] args ) {
		MongoConnection conn = new MongoConnection("192.168.5.95",27017);
		ArrayList<DataColumn> filter = new ArrayList<DataColumn>();
		DataColumn col = new DataColumn();
		col.setKey("contentname");
		col.setValue("杀破狼2");
		filter.add(col);
		String jsonData = "{ \"contentname\":\"杀破狼2\",\"10000_1\" : [\"动作\",\"惊悚\",\"犯罪\"]}";
		conn.UpdateDataByJson("iptv", "DW_CONTENT_TAG", filter, jsonData);
    }
}

    